<div class="jestesw"><?php echo $this->translate("produkt_ma");?> / <span><?php echo $this->translate("lay_cart");?></span></div>
<div class="naglowek"><?php echo $this->translate("lay_cart");?></div>
<div class="konto">
	<div class="cart">
		<div class="etap">1. <?php echo $this->translate("index_aprove");?></div>
		<div class="etap now">2. <?php echo $this->translate("index_ship");?></div>
		<div class="etap">3. <?php echo $this->translate("index_pay");?></div>
		<div class="hr"></div>
		<?php 
			echo $this->inlineScript()->setScript('
			function check_ship()
			{
				if(!$( "input:radio" ).is( ":checked" ) ){
					alert("'.$this->translate("ship_noship").'");
					return;
				}
				
				$("#pay").attr("action","'.$this->baseUrl().'/basket/pay2");
				$("#pay").submit();	
			}
		');	?>
		<form action="javascript:;" method="post" onsubmit="check_ship()" id="pay">
		<?php 
		foreach($this->basket as $value){
			$price = unserialize($value['price']);
			?>
			<div class="pozycja">
				<div class="p1" style="width: 23px;"><input type="radio" value="<?php echo $value['p_id']?>" name="ship" /></div>
				<div class="p1" style="width: 613px;"><span><?php echo $value['title']?></span><span><?php echo $value['description']?></span></div>
				<div class="p4"><?php echo number_format($price[$this->currency], 2, ',', ' ').$this->currency?></div>
			</div>
			<div class="hr"></div>
			<?php
		}
		?>
		<div class="end" style="margin-bottom: 4px;"></div>
		<div class="podsumowanie2">
			<a href="<?php echo $_SERVER['HTTP_REFERER']?>" class="back"><?php echo $this->translate("index_back");?></a>
			<div class="info">
				<div><?php echo $this->translate("index_price");?> : <span><?php echo  number_format($this->basket_prize, 2, ',', ' ').$this->currency?></span></div>
				<div><?php echo $this->translate("index_ship");?> : <span>0</span></div>
				<div class="total"><?php echo $this->translate("index_total");?>: <span><?php echo  number_format($this->basket_prize, 2, ',', ' ').$this->currency?></span></div>
				<div><input type="submit" class="but" value="<?php echo $this->translate("index_buy");?>" /></div>
			</div>
		</div>
		</form> 
	</div>
</div>